<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational XDE Developer 反向设计数据库</title>
<meta content="ToolMentor" name="uma.type">
<meta content="reverse_engineering_db" name="uma.name">
<meta content="使用 Rational XDE Developer 反向设计数据库" name="uma.presentationName">
<meta content="Tool:rup_xde:Rational XDE Developer" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational XDE Developer" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_gpYSoAILEdq-_NKqZM1EhA", "_qS-iwAIOEdqTna4sZVFRow", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{8F40AECA-8AAA-4409-81F0-BFB7B6BECDBC}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_zRigkAILEdq-_NKqZM1EhA", "_U5tiUAISEdqTna4sZVFRow", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{8F40AECA-8AAA-4409-81F0-BFB7B6BECDBC}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{8F40AECA-8AAA-4409-81F0-BFB7B6BECDBC}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{8F40AECA-8AAA-4409-81F0-BFB7B6BECDBC}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{8F40AECA-8AAA-4409-81F0-BFB7B6BECDBC}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational XDE Developer 反向设计数据库</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述使用 Rational XDE Developer 软件工具中的反向设计从现有数据库模式或 DDL 脚本文件生成数据模型。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_xde_D81FFA70.html" guid="{303A82D2-E3AB-4501-8563-0D4D43782AF9}">Rational XDE Developer</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/database_design_8552DD3.html" guid="{2E74A414-49F5-4F27-BFCB-AA2DAC675F58}">数据库设计</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a><a id="XE_XDE_Developer-Java_Platform__Reverse_Engineering_Databases" name="XE_XDE_Developer-Java_Platform__Reverse_Engineering_Databases"></a> 
<h3>
    概述
</h3>
<p>
    此工具向导描述使用 Rational XDE (TM) 软件工具中的反向设计从现有数据库模式或 DDL 脚本文件生成数据模型。
</p>
<p>
    在本工具向导中执行以下步骤：
</p>
<ul>
    <li>
        <a href="#Reverse Engineering a Database">反向设计数据库</a>
    </li>
    <li>
        <a href="#Transform">将表转变成类</a> &lt;可选&gt;
    </li>
    <li>
        <a href="#Manage Changes to Model and Database">管理模型和数据库变更</a>
    </li>
</ul>
<h3>
    <a id="Reverse Engineering a Database" name="Reverse Engineering a Database">反向设计数据库</a>
</h3>
<p>
    在 Rational XDE 中，您可以通过反向设计数据库或数据定义语言（DDL）文件来构建物理数据库设计的模型。参考：<img alt="帮助手册图标"     src="./../../../core.base_rup/resources/helpbook.gif" /><i>Building Data Models by Reverse Engineering</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_o_gen_dm_re"); -->。
</p>
<p>
    使用 Rational XDE 数据建模<b>反向设计向导</b>启动反向设计过程。（请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Reverse
    Engineering DDLs or Databases</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_t_re_ddl_db"); -->。）反向设计向导读取数据库模式或
    DDL，并创建：
</p>
<ul>
    <li>
        包含表、列、约束、关系、存储过程以及视图的软件包。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Designing Data Models</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_o_bld_dm"); -->。
    </li>
    <li>
        包含域的软件包。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Domains</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_dom"); -->。
    </li>
    <li>
        包含每个表的实现关系的数据库。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Realize Relationships in Data
        Modeling</i> <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_realization_dm"); -->。
    </li>
</ul>
<p>
    要反向设计数据库，Rational XDE 必须能够建立到该数据库的连接。（请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Connecting to
    Database Management Systems</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_o_connect_dbms"); -->。）请注意，每种 DBMS
    的反向设计过程的结果可能不同。
</p>
<p>
    有关为特定 DBMS 反向设计数据库的详细信息，请参考以下主题：
</p>
<ul>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Oracle Database Reverse Engineering</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_re_oracle_db"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>SQL Server Database Reverse Engineering</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_re_sqlsrv_db"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Sybase Database Reverse Engineering</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_re_sybase_db"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>DB2 Database Reverse Engineering</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_re_db2_db"); -->
    </li>
</ul>
<p>
    有关建立特定 DBMS 的数据库连接的更多信息，请查阅 Rational XDE 联机帮助中的以下主题：
</p>
<ul>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Oracle Database Connections</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_oracle_db_connect"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>SQL Server Database Connections</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_sqlsrv_db_connect"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Sybase Database Connections</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_sybase_db_connect"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>DB2 Database Connections</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_db2_db_connect"); -->
    </li>
</ul>
<h3>
    <a id="Transform" name="Transform">将表转换为类 &lt;可选&gt;</a>
</h3>
<p>
    一旦对数据库进行反向设计以创建物理数据库设计模型，您就可以选择是否将表转换成可包含在设计模型或单独的逻辑数据模型的逻辑数据库设计中的类。（请参阅 <img alt="帮助手册图标"     src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Logical Data Model</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_logical_dm"); -->。）您可以转换软件包中包含或者通过数据库实现的一个表或所有表。（请参阅
    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Transforming Tables to Classes</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_t_transf_tbl_clss"); -->。）要将关系转换成逻辑数据模型，软件包必须包含该关系中的所有参与者。
</p>
<p>
    有关对数据库进行设计和建模的其他详细信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/database_design_51B0B5D9.html" guid="{A7B13419-14D8-4C55-B98C-497B2E17CC73}">工具向导：在 Rational XDE 中对数据库设计和建模</a>。
</p>
<p>
    有关表类转换过程进一步的详细信息，请参考 Rational XDE 联机帮助中的以下主题：
</p>
<ul type="square">
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Table to Class Transformation</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_c_tbl_clss_transf"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Table to Class Transformation Mapping</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_r_tbl_transf_map"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Transforming Tables and Classes</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_o_transf_tbl_clss_ejb"); -->
    </li>
</ul>
<h3>
    <a id="Manage Changes to Model and Database" name="Manage Changes to Model and Database">管理模型和数据库的变更</a>
</h3>
<p>
    在通过反向设计过程创建了数据模型后，必须控制和管理对数据模型和数据库的更新。Rational XDE 提供了一种比较和同步功能，用以帮助数据库设计员管理变更。（请参阅 <img alt="帮助手册图标"     src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Comparing and Synchronizing in Data Modeling</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"dm","dm_o_gen_dm_cmpsync"); -->, <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/managing_db_ACA9AB6E.html" guid="{3B09E5BE-4AC8-4206-B9D8-4F85D36B9C75}">工具向导：在 Rational XDE
    中管理数据库</a>。）建议在阶段性反向设计中使用比较和同步功能，因为对同一模型多次使用反向设计过程会造成数据模型中存在重复的表和关系。
</p></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><table width="100%" border="0">
    <tbody>
        <tr>
            <td valign="center" align="left">
                <a href="http://www.appliedis.com" target="_blank"><img alt="Applied Information Sciences 图标"                 src="./../../../core.base_rup/guidances/supportingmaterials/resources/appliedis.gif" border="0" /></a>
            </td>
            <td valign="center" align="left" width="86%">
                <font face="Arial"><small><small>此内容的全部或部分由 <a href="http://www.appliedis.com" target="_blank">Applied
                Information Sciences</a> 开发。</small></small></font>
            </td>
        </tr>
    </tbody>
</table>
<p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
